package com.ruoyi.price.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.price.domain.TbFormula;
import com.ruoyi.price.domain.TbFormulaWidget;
import com.ruoyi.price.domain.TbFormulaWidgetAttr;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * 公式信息对象 tb_formula
 * 
 * @author ruoyi
 * @date 2023-03-06
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TbFormulaDTO extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    @NotBlank(message = "公司名称不能为空")
    private String name;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 图片id */
    @Excel(name = "图片id")
    private String fileId;

    @Excel(name = "公式表达式")
    private String expressionVal;

    private List<TbFormulaWidgetDTO> formulaWidgetList;

}
